package com.dizang.ddd.entity;

import java.util.List;

import com.dizang.ddd.business.IProjectCreator;

/**
 * 
 * @author kelvin.cai
 *
 */
public class ParentProject extends Project implements IProjectCreator {


    public ParentProject(String artifactId, String parentArtifactId, String groupId,
            List<AbstractProjectBuilder> dependencies, List<String> packages, List<AbstractProjectBuilder> modules) {
        super(artifactId,parentArtifactId,groupId,dependencies,packages);
        this.artifactId = artifactId;
        this.parentArtifactId = parentArtifactId;
        this.groupId = groupId;
        this.dependencies = dependencies;
        this.packages = packages;
        this.pomBuilder = new ParentPomBuilder(artifactId,parentArtifactId,groupId,dependencies,modules);
    }

    @Override
    public boolean createProject(String path) {
        createPath(path);
        this.pomBuilder.createPom(path);
        return true;

    }

    
}
